﻿using T4UtilityBelt.Writers;

namespace T4UtilityBelt.UxDesigns.Controls.Renderers.Android.Helpers
{
    public static class OrientationWriter
    {
        public static void Write(Orientation orientation, CodeWriter writer)
        {
            if (orientation == Orientation.Horizontal)
            {
                writer.WriteAttribute("android:orientation", "horizontal");
            }
            else
            {
                writer.WriteAttribute("android:orientation", "vertical");
            }
        }
    }
}
